package com.info.zhiduoduo.repository.entity.quota;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("zdd_company_quota")
public class CompanyQuota extends Model<CompanyQuota> {

	/**
	 * 企业id
	 */
	@TableId(type = IdType.INPUT)
	@ApiModelProperty("企业id")
	private Integer compid;

	/**
	 * 单笔项目限额
	 */
	@ApiModelProperty("单笔项目限额")
	@TableField("single_quota")
	private Double singleQuota;

	/**
	 * 月度限额
	 */
	@ApiModelProperty("月度限额")
	@TableField("monthly_quota")
	private Double monthlyQuota;

	/**
	 * 季度限额
	 */
	@ApiModelProperty("季度限额")
	@TableField("quarterly_quota")
	private Double quarterlyQuota;

	/**
	 * 年度限额
	 */
	@ApiModelProperty("年度限额")
	@TableField("yearly_quota")
	private Double yearlyQuota;

	/**
	 * createtime
	 */
	@ApiModelProperty("createtime")
	private Date createtime;

	/**
	 * updatetime
	 */
	@ApiModelProperty("updatetime")
	private Date updatetime;

	@Override
	protected Serializable pkVal() {
		return compid;
	}
}
